import numpy as np

n = np.arange(24).reshape(4, 6)
print(n)

# 转置
n1 = n.T
print(n1)

n2 = n.transpose()
print(n2)

# 转置练习
arr1 = np.array([['A', 100], ['B', 200], ['C', 300], ['D', 400], ['E', 500]])
print(arr1)

arr2 = arr1.T
print(arr2)

